# topic/urls.py

from django.urls import path, re_path
from . import views
from topic.views import IndexView, HrefView, NewTopicView, Test

app_name = 'topic'
urlpatterns = [
    path('', IndexView.as_view(), name='index'),
    re_path('topic/(?P<topic_id>\d+)/', HrefView.as_view(), name='topic_page'),
    path('edit/', NewTopicView.as_view(), name='topic_edit'),
    path('edit/action', NewTopicView.as_view(), name='topic_edit_action'),
    path('comment_action', views.comment_action, name='comment_action'),
    path('respect_action', views.respect_action, name='respect_action'),

    path('test/', Test.as_view(), name='test'),
]
